package qlsl.androiddesign.adapter.subadapter;

import java.util.List;

import qlsl.androiddesign.activity.baseactivity.BaseActivity;
import qlsl.androiddesign.adapter.baseadapter.BaseAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.qlsl.androiddesign.kuaiwa.R;

/**
 * 服务类型适配器<br/>
 */
public class ServerTypeAdapter extends BaseAdapter<String> {

	public ServerTypeAdapter(BaseActivity activity, List<String> list) {
		super(activity, list);
	}

	public View getView(final int position, View convertView, ViewGroup parent) {
		convertView = getItemView(convertView, R.layout.listitem_server_type);

		TextView tv_text = getView(convertView, R.id.tv_text);

		String name = getItem(position);

		tv_text.setText(name);

		return convertView;
	}

}
